/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ta.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 附件路径Entity
 * 
 * @author TTAO
 * @version 2017-06-05
 */
public class StDynamicResource extends DataEntity<StDynamicResource> {

	private static final long serialVersionUID = 1L;
	private Long iid; // iid
	private String path; // path
	private String sname; // 加入资源的岗位
	private String userid; // 加入资源的用户
	private Integer type; // type
	private String resValue; // res_value
	private Integer inputIndex; // 不能为0，0表示静态资源
	private String rtid; // rtid
	private Long orderno; // orderno

	// 文档名
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public StDynamicResource() {
		super();
	}

	public StDynamicResource(String id) {
		super(id);
	}

	@NotNull(message = "iid不能为空")
	public Long getIid() {
		return iid;
	}

	public void setIid(Long iid) {
		this.iid = iid;
	}

	@Length(min = 1, max = 255, message = "path长度必须介于 1 和 255 之间")
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Length(min = 0, max = 64, message = "加入资源的岗位长度必须介于 0 和 64 之间")
	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	@Length(min = 0, max = 36, message = "加入资源的用户长度必须介于 0 和 36 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@NotNull(message = "type不能为空")
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Length(min = 0, max = 4000, message = "res_value长度必须介于 0 和 4000 之间")
	public String getResValue() {
		return resValue;
	}

	public void setResValue(String resValue) {
		this.resValue = resValue;
	}

	public Integer getInputIndex() {
		return inputIndex;
	}

	public void setInputIndex(Integer inputIndex) {
		this.inputIndex = inputIndex;
	}

	@Length(min = 0, max = 36, message = "rtid长度必须介于 0 和 36 之间")
	public String getRtid() {
		return rtid;
	}

	public void setRtid(String rtid) {
		this.rtid = rtid;
	}

	public Long getOrderno() {
		return orderno;
	}

	public void setOrderno(Long orderno) {
		this.orderno = orderno;
	}

}